import request from '@/utils/request'

// 查询定时任务列表
export function listJobmonitor(page,data) {
  return request({
    url: '/job/jobmonitor/list',
    method: 'post',
    params: page,
    data: data
  })
}

// 查询定时任务详细
export function getJobmonitor(data) {
  return request({
    url: '/job/jobmonitor/detail',
    method: 'post',
    data: data
  })
}

// 修改定时任务
export function updateJobmonitor(data) {
  return request({
    url: '/job/jobmonitor/edit',
    method: 'post',
    data: data
  })
}

// 立即执行一次任务
export function runJob(data) {
  return request({
    url: '/job/jobmonitor/runjob',
    method: 'get',
    params: data
  })
}